]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
telepathyClient: Update notification time from message
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 27 Feb 2017 10:27:52 +0000 (11:27 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 27 Feb 2017 19:04:09 +0000 (20:04 +0100)
As the telepathy integration picks up existing channels on startup,
ChatNotifications are another case where the real time the message
was received may be before the time it is picked up by the shell.
While this is less of an annoyance than restored GNotifications, as
it generally only affects restarts from the run dialog, it's an
easy fix now ...

https://bugzilla.gnome.org/show_bug.cgi?id=775799

js/ui/components/telepathyClient.js

index 927ca456eac294925c48cef84e18878b1efee1ee..f1fe09f958927fb8f8bce3bbaed8a933806e59af 100644 (file)
@@ -670,6 +670,8 @@ const ChatNotification = new Lang.Class({
                        styles: styles,
                        timestamp: message.timestamp,
                        noTimestamp: noTimestamp });
+        this.update(this.title, this.bannerBodyText,
+                    { datetime: GLib.DateTime.new_from_unix_local (message.timestamp) });
     },
 
     _filterMessages: function() {